package com.aspirecn.core.object;

import org.apache.commons.lang3.builder.ReflectionToStringBuilder;

public class IP {

	//ip地址
	private String ipAddress;
	
	public String getIpAddress() {
		return ipAddress;
	}

	public void setIpAddress(String ipAddress) {
		this.ipAddress = ipAddress;
	}

	public City getCity() {
		return city;
	}

	public void setCity(City city) {
		this.city = city;
	}

	public Province getProvince() {
		return province;
	}

	public void setProvince(Province province) {
		this.province = province;
	}

	//所属城市
	private City city;
	
	//所属省份
	private Province province;
	
	//网关
	private int gateway = WIFI_GATEWAY;
	
	public int getGateway() {
		return gateway;
	}

	public void setGateway(int gateway) {
		this.gateway = gateway;
	}

	public static final int CMWAP_GATEWAY = 0;
	public static final int CMNET_GATEWAY = 1;
	public static final int WIFI_GATEWAY = 2;
	
	public String toString() {
		return ReflectionToStringBuilder.toString(this);
	}
}